package com.javakc.mes.executeTeam.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@ApiModel(value = "队组表")
@TableName(value = "mes_execute_team")
public class ExecuteTeam {

    //主键ID
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id")
    private int id;

    //对组名称
    @ApiModelProperty(value = "队组名称")
    @TableField(value = "name")
    private String name;

    //队组类别
    @ApiModelProperty(value = "队组类别")
    @TableField(value = "team_type")
    private int teamType;

    //主要负责人
    @ApiModelProperty(value = "主要负责人")
    @TableField(value = "principal")
    private String principal;

    //在册人数
    @ApiModelProperty(value = "在册人数")
    @TableField(value = "number_registered")
    private String numberRegistered;

    //状态
    @ApiModelProperty(value = "状态")
    @TableField(value = "state")
    private String state;

    //备注
    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    //创建时间
    @ApiModelProperty(value = "创建时间",example = "2022-12-12 9:00:00")
    @TableField(value = "gmt_create",fill= FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;

    //更新时间
    @ApiModelProperty(value = "更新时间",example = "2022-12-12 9:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
